package hnlg.com.cn.purviewmanage.rolemanage.service;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import hnlg.com.cn.model.RoleVO;

@Mapper
public interface IRoleService {
	public List<RoleVO> queryList(RoleVO vo)throws Exception;
	public boolean addRole(RoleVO vo)throws Exception;
	public boolean updateRole(RoleVO vo)throws Exception;
	public boolean deleteRole(String roleid)throws Exception;
	
	//针对角色授权模块的方法
	public boolean roleaddModule(String roleid,String moduleid[])throws Exception;
	/*查询出某个角色已经授权了的模块Id号:用于角色授权模块中：树型控件的显示：授权了的就自动选中否则不选中*/
	public List queryModuleIdList(String roleid)throws Exception;
	/*为了防止授权时，重复授权插入重复的数据，先删除在插入：下面是根据角色id删除角色模块中间表数据*/
	public boolean deleteRoleModule(String roleid)throws Exception;
	
	
}
